package com.xuhuan.practice.entity.common;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * @author: huan.xu
 * @create: 2024/6/13 18:00
 * @description: 通用实体属性
 **/
@Data
public class BaseEntity {

  @TableId("id")
  private Integer id;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("create_time")
  private LocalDateTime createTime;

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @TableField("update_time")
  private LocalDateTime updateTime;

}
